/*
 * @Author: albert shyttsyj@126.com
 * @Date: 2023-07-31 16:59:00
 * @LastEditors: albert shyttsyj@126.com
 * @LastEditTime: 2024-07-03 22:54:14
 * @FilePath: /sales-assistant-admin/src/store/getters.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
const getters = {
  sidebar: state => state.app.sidebar,
  size: state => state.app.size,
  device: state => state.app.device,
  visitedViews: state => state.tagsView.visitedViews,
  cachedViews: state => state.tagsView.cachedViews,
  userId: state => state.user.id,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  nickname: state => state.user.nickname,
  introduction: state => state.user.introduction,
  roles: state => state.user.roles,
  currentRoleId: state => state.user.currentRoleId,
  permissions: state => state.user.permissions,
  permission_routes: state => state.permission.routes,
  // 工具栏
  topbarRouters:state => state.permission.topbarRouters,
  defaultRoutes:state => state.permission.defaultRoutes,
  sidebarRouters:state => state.permission.sidebarRouters,
  mMenus:state => state.permission.mMenus,
  // 数据字典
  dict_datas: state => state.dict.dictDatas,
  getDictLabel: state => state.dict.getDictLabel,
  // 地区
  areas: state => state.dict.areas,
  // 组件管理
  weComState: state => state.components.weComState,
}
export default getters
